<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var arr = ['html','css','js']
        arr.forEach(function(item){
            console.log(item);
        })
        var arr1 = [1,2,3]
        var newarr1=[]
        arr1.forEach(function(item){
            newarr1.push(item*2)
        })
        console.log(newarr1);
        var names = [
            {name:'李四'},
            {name:'王五'}         
        ]
        names.forEach(function(item){
           item.like = 'true'
        })
        console.log(names)
    </script>
</body>
</html>